﻿<%@ Page Language="C#" AutoEventWireup="true" Title="Sueldos" MasterPageFile="~/MasterPage.master"  CodeFile="Sueldos.aspx.cs" Inherits="Empleados_Sueldos"%>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Content ID="content" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> &nbsp;
<asp:ScriptManager id="ScriptManager1" runat="server"></asp:ScriptManager>
    &nbsp;
    <asp:UpdatePanel id="UpdatePanel1" runat="server">
        <triggers>
<asp:PostBackTrigger ControlID="btnBuscarEmpleado"></asp:PostBackTrigger>
</triggers>
        <ContentTemplate>
<TABLE width="100%"><TBODY><TR><TD style="WIDTH: 100%; height: 18px;" class="tdEmpleados" colSpan=4>Pagos a Empleados</TD></TR><TR><TD style="WIDTH: 100%; TEXT-ALIGN: center" class="tdForm" colSpan=4><asp:Label id="lblAccion" runat="server" Text="lblAccion" CssClass="lblAccion"></asp:Label> </TD></TR><TR><TD style="WIDTH: 15%; TEXT-ALIGN: right" class="tdForm">Empleado:</TD><TD style="WIDTH: 20%; HEIGHT: 14px; TEXT-ALIGN: left" class="tdForm" colSpan=1><asp:TextBox id="txtIdEmpleado" runat="server" Width="70px" AutoPostBack="True" OnTextChanged="txtIdEmpleado_TextChanged"></asp:TextBox>&nbsp; <asp:Button id="btnBuscarEmpleado" onclick="btnBuscarEmpleado_Click" runat="server" Text="..."></asp:Button></TD><TD style="WIDTH: 65%; TEXT-ALIGN: left" class="tdForm" colSpan=2><asp:TextBox id="txtEmpleado" runat="server" Width="90%"></asp:TextBox></TD></TR><TR><TD style="TEXT-ALIGN: right" class="tdForm" colSpan=2>Saldo Cta. Cte. :</TD><TD style="TEXT-ALIGN: left" class="tdForm" colSpan=2><asp:TextBox id="txtSaldo" runat="server" Width="100px" CssClass="numero" ReadOnly="True"></asp:TextBox></TD></TR><TR><TD style="TEXT-ALIGN: center" class="tdForm" colSpan=4><asp:RadioButton id="rdbSueldo" runat="server" Text="Sueldo" AutoPostBack="True" Checked="True" ValidationGroup="vgGuardar" OnCheckedChanged="rdbSueldo_CheckedChanged"></asp:RadioButton> &nbsp; <asp:RadioButton id="rdbAdelanto" runat="server" Text="Adelanto" AutoPostBack="True" ValidationGroup="vgGuardar" OnCheckedChanged="rdbAdelanto_CheckedChanged"></asp:RadioButton></TD></TR><TR id="trAdelanto" runat="server" ><TD style="TEXT-ALIGN: center" id="tdChkSaldo" class="tdForm" colSpan=2 runat="server" visible="true"><asp:CheckBox id="chkSaldo" runat="server" Text="Limpia Saldo Cta. Cte." OnCheckedChanged="chkSaldo_CheckedChanged" AutoPostBack="True"></asp:CheckBox></TD>
    <td runat="server" class="tdForm" colspan="1" style="text-align: right" visible="true">
        <asp:Label ID="Label1" runat="server" Text="Monto Devuelve Adelanto $:"></asp:Label></td>
    <td runat="server" class="tdForm" colspan="1" style="text-align: left" visible="true">
        <asp:TextBox ID="txtAdelanto" runat="server" CssClass="numero" MaxLength="10" Width="100px"></asp:TextBox>
        <asp:RangeValidator ID="rvAdelanto" runat="server" ControlToValidate="txtAdelanto"
            ErrorMessage="(*)" MaximumValue="9999999.99" MinimumValue="0.00" Type="Double"></asp:RangeValidator></td>
</TR><TR><TD style="TEXT-ALIGN: right" class="tdForm" align=left colSpan=2><asp:Label id="lblMonto" runat="server" Text="Monto $:"></asp:Label></TD><TD style="TEXT-ALIGN: left" class="tdForm" colSpan=2><asp:TextBox id="txtMonto" runat="server" Width="100px" CssClass="numero" MaxLength="10"></asp:TextBox> <asp:RangeValidator id="rvMonto" runat="server" ControlToValidate="txtMonto" ErrorMessage="(*)" MaximumValue="9999999.99" MinimumValue="0.00" Type="Double"></asp:RangeValidator></TD></TR><TR><TD style="WIDTH: 15%; TEXT-ALIGN: right" class="tdForm"><asp:Label id="lblObservaciones" runat="server" Text="Observaciones:"></asp:Label> </TD><TD style="WIDTH: 85%; TEXT-ALIGN: left" class="tdForm" align=left colSpan=3><asp:TextBox id="txtObservaciones" runat="server" Width="95%"></asp:TextBox> </TD></TR></TBODY></TABLE>
        </ContentTemplate>
    </asp:UpdatePanel>
    <table class="tdForm" style="width: 100%">
        <tr>
            <td style="width: 100%" class="tdBotones"><asp:Button ID="btnOtro" runat="server" OnClick="btnOtro_Click" Text="Cargar Otro" />
                &nbsp;
                <asp:Button ID="btnGuardar" runat="server" OnClick="btnGuardar_Click" Text="Guardar" />
                &nbsp; &nbsp;<asp:Button ID="btnCancelar" runat="server" OnClick="btnCancelar_Click" Text="Cancelar" />
                &nbsp;&nbsp;
            </td>
        </tr>
    </table>
    <br />
<asp:Panel ID="pnlMensaje" runat="server" CssClass="tdBotones" Style="display: none"
        Width="233px">
        <div style="background-image: none; background-color: transparent; text-align: center">
            <asp:Label ID="lblMensaje" runat="server" Text="Códido de Barras Inexistente"></asp:Label>
            <br />
            <br />
            <asp:Button ID="btnMensaje" runat="server" Text="OK" Width="64px" />
        </div>
    </asp:Panel>
    <table id="tblMensaje" runat="server" border="0" style="width: 0px; height: 0px">
        <tr>
            <td style="width: 100px; height: 18px">
                <asp:Button ID="btnMalMensaje" runat="server" Height="0px" Text="Button" Width="0px" />
            </td>
        </tr>
    </table>
    <cc1:ModalPopupExtender ID="mpeMensaje" runat="server" BackgroundCssClass="modalBackground"
        DropShadow="true" OkControlID="btnMensaje" PopupControlID="pnlMensaje" TargetControlID="btnMalMensaje">
    </cc1:ModalPopupExtender>
</asp:Content>
